package com.woniuxy.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.entity.ArticleComment;

import java.util.List;

/**
* @author nanqiao
* @description 针对表【article_comment(评论互动表)】的数据库操作Mapper
* @createDate 2025-07-12 16:35:45
* @Entity com.woniuxy.core.mapper.ArticleComment
*/
public interface ArticleCommentMapper extends BaseMapper<ArticleComment> {
    List<ArticleComment> selectCommentsByArticleId(Long articleId);
    /**
     * 根据评论ID查询帖子信息（包含用户昵称、头像等）
     */
    ArticleComment selectCommentWithUserInfoById(Long commentId);

}





